package com.changyinBus.system.service.impl;

import com.changyinBus.common.core.domain.entity.SysMessage;
import com.changyinBus.system.mapper.SysMessageMapper;
import com.changyinBus.system.service.ISysMessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysMessageServiceImpl implements ISysMessageService {
    @Resource
    private SysMessageMapper sysMessageMapper;

    @Override
    public List<SysMessage> selectMessageList(SysMessage message) {
        return sysMessageMapper.selectMessageList(message);
    }

    @Override
    public SysMessage selectMessageById(Long messageId) {
        return sysMessageMapper.selectMessageById(messageId);
    }

    @Override
    public int insertMessage(SysMessage message) {
        return sysMessageMapper.insertMessage(message);
    }
}
